<%-- 
    Document   : test1
    Created on : 24 Nov 12, 12:48:48
    Author     : user
--%>

<%@page import="javax.swing.JOptionPane"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        
        
        <%--
            model.DataBaseConnection conn = new model.DataBaseConnection();

            try {
                String query = " Select * from testOnline where username='" + username.() + "' AND password='" + password.getText() + "'";
                java.sql.Statement stmt = conn.createStatement();

                java.sql.ResultSet rslt = stmt.executeQuery(sql);
                while (rslt.next()) {
                    kd_pelanggan = rslt.getString("kd_kasir");
                }

                if (kd_pelanggan != null) {
                    catat_log();
                    dispose();
                    new utama().setVisible(true);
                } else {
                    JOptionPane.showMessageDialog(null, "Anda Gagal Login!!!", "Peringatan", JOptionPane.WARNING_MESSAGE);
                    username.requestFocusInWindow();
                    username.setText("");
                    password.setText("");
                }
            } catch (Exception ex) {
            }
        %>
    </body>
</html>
